<template>
  <div class="father">
<!--    导航栏-->
    <div style="display: flex">
      <NavBarItem link="/videoPage/mv">MV</NavBarItem>
      <NavBarItem link="/videoPage/video">视频</NavBarItem>
    </div>
<!--    路由映射-->
    <div class="router-view">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
import {video} from "../../network/video";
import NavBarItem from "@/components/content/navbar/NavBarItem";

  export default {
    name: "Father",
    components:{NavBarItem},
    created() {
      video.getAllVideo().then(res =>{
        console.log(res);
      })
    }
  }
</script>

<style scoped>
  .father{
    width: 90%;
    position: absolute;
    top: 44px;
    left: 137px;
    bottom: 50px;
    right: 2px;
    padding: 5px 20px;
    overflow-y: scroll;
  }

  .router-view{

  }

</style>
